package com.lyf.baoxian.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.lyf.baoxian.R;
import com.lyf.baoxian.utils.MyMethod;

/**
 * Created by 刘亚飞 on 2016/12/1.
 * 保险套餐购买界面
 */

public class BuyTaoCanActivity extends Activity implements View.OnClickListener {
   private Button buy_next;
    //显示客户信息
    private ImageView iv_show;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_buy);
        initData();
        initView();
    }


    private void initData() {
        MyMethod.setTitle(this,"购买信息","保险详情",this);

    }

    private void initView() {
        buy_next = (Button) findViewById(R.id.by_next);
        iv_show = (ImageView) findViewById(R.id.iv_show);
        iv_show.setOnClickListener(this);
        buy_next.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.by_next:
                Intent intent = new Intent(BuyTaoCanActivity.this,AgreenActivity.class);
                startActivity(intent);
                break;

            case R.id.iv_show:
                Intent intent1 = new Intent(BuyTaoCanActivity.this,HisCustomerActivity.class);
                startActivity(intent1);
                break;

            case R.id.bt_right:
                Intent intent2 = new Intent(BuyTaoCanActivity.this,ShowTaoCanActivity.class);
                startActivity(intent2);
                break;
        }
    }
}
